\chapter{\LaTeX}
\label{chap:latex}
%***********************************************************************
% LaTeX
%***********************************************************************
    It is my professional and personal opinion that all serious documents should be typeset in \LaTeX. LaTeX is a coding language for typesetting, which means that you have to compile your text to turn it in to nicely formatted text. You write your LaTeX text in any text editor, compile it and voila, you have a beautiful pdf. 
	Writing for instance:
	
	\begin{quote}	    \texttt{The energy is \$E = \textbackslash hbar \textbackslash omega\$} \end{quote}
	produces:
	
	\begin{quote}	    The energy is $E = \hbar \omega $. \end{quote}
	The power of LaTeX is that it offers robust typesetting. You can write any equation you desire, any layout you want, limitless referencing possibilities, and it will be consistent, persistent and beautiful. LaTeX will never auto-correct or suddenly change the font, format and size of your text. You are in complete control. Ok, enough propaganda. 
	You will have to spend an effort learning to write LaTeX, but when you have become accustomed to it, you will find it is at least as fast as writing in word (and much more reliable). 
	
%***********************************************************************
% Getting started 
%***********************************************************************
	\subsection{Getting started}
		Learning LaTeX is an ongoing process. Whenever you learn a new trick, you don't have to remember how you did it: it will be there in your text, ready to be copied to the next document. Note: it is still a good idea to comment your text.
        At the end of this section you will find links to help you further. Note, that many Linux distributions will have TeX installed. Otherwise install TexLive directly, see link at the end of this chapter. 
%
	 	Below you will find some useful tips, which are more relevant once you have become a bit familiar with LaTeX. We will cover basic use of LaTeX in the course presentations.

%***********************************************************************
% PDFLaTeX
%***********************************************************************
	\subsection{PDFLaTeX}
	There are two ways of compiling the tex-file. Regular LaTeX compilers will make a dvi-file which can be converted to pdf. The PDFLaTeX compiler will make a pdf-file directly. The main difference in choice of compiler is the figures. The regular compiling to dvi require figures in .eps format. Many eps files have a tendency to make the final pdf large which can sometimes be a problem. PDFLaTeX on the other hand, handles .pdf, .png, .gif and .jpg format. 

%***********************************************************************
% latexmk
%***********************************************************************
	\subsection{latexmk}
		This is a small program which handles the compilation for you. You simply start it up and let it run while you're writing. Not only will it handle compilation, it will compile whenever you save and update the dvi/pdf accordingly. This program is not essential, but makes life with LaTeX even more pleasant. 


%***********************************************************************
% Useful links
%***********************************************************************
	\subsection{Useful links}

		\begin{description}
            \item[Starting guide] \url{www.eng.cam.ac.uk/help/tpl/textprocessing/ltxprimer-1.0.pdf}
            \item[Web course] \url{http://latex101.wikispaces.com/}
            \item[Download guide [Windows, Mac], \url{http://latex101.wikispaces.com/TeX+clients}
            \item[TexLive [Linux]] \url{http://www.tug.org/texlive/}
            \item[Templates] \url{http://www.vel.co.nz/vel.co.nz/LaTeX_Templates.html}
  			\item[LaTeX på norsk] \url{http://folk.uio.no/tobiasvl/latex.html}
		\end{description}


